package homework.day318.demo2;

public class Rectangle  extends Graph{
    private Double length;

    private Double width;

    public Double getLength() {
        return length;
    }

    public void setLength(Double length) {
        this.length = length;
    }

    public Double getWidth() {
        return width;
    }

    public void setWidth(Double width) {
        this.width = width;
    }

    public Rectangle(){
        super();
    }

    public void calculateArea(){
        System.out.println(length * width);
    }

}
